<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<meta charset="utf-8">
<style>
	body{
        font-size: 16px;
        line-height: 26px;
        margin: 0px;
        padding: 0px;
	}
	table, td {
        margin: 0px;
        padding: 0px;
	}
</style>
<script src="../../resources/js-test.js"></script>
</head>

<body onload="runTests();">
<table>
    <tbody><tr>
        <td width="200">
            pre-text<a href="https://bug-45164-attachments.webkit.org/" style="background-color:red;">
                <img src="" align="top">
            </a> after-text
        </td>
        <td>Something</td>
    </tr></tbody>
</table>
<br>
<p id="description"></p>
<div id="console"></div>
<script>
description('Tests for hitTest of <a> element <br/> <a href="https://bugs.webkit.org/show_bug.cgi?id=45164">bug 45164</a>: REGRESSION: <a><img align=top></a> Clickable area too large');

var hitResult;
function runTests() {
    var obj = document.elementFromPoint(15, 15);
    hitResult = (obj.nodeName.toLowerCase() == "a");
    shouldBeFalse('hitResult');
}
</script>  
</body>
</html>
